package com.letoken.platform.repo.admin.manager;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.letoken.platform.repo.admin.dao.AdminIssueConfigMapper;
import com.letoken.platform.repo.admin.po.AdminIssueConfig;
import com.letoken.platform.repo.app.res.config.QueryAppIssueConfigRes;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
 * @author letokenlabs
 * @date 2022/11/25$
 */
@Log4j2
@Repository
public class AdminIssueConfigManager {

    @Autowired
    private AdminIssueConfigMapper AdminIssueConfigMapper;


    /**
     * 查询发行配置
     *
     * @return
     */
    public AdminIssueConfig queryLet() {
        return AdminIssueConfigMapper.selectById(1);
    }

    /**
     * 查询流通配置
     * @return
     */
    public QueryAppIssueConfigRes queryLetokenIssueConfig() {
        return AdminIssueConfigMapper.queryLetokenIssueConfig();
    }

}
